package pl.pkolodziej.platform.service.schedule;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import pl.pkolodziej.platform.dao.schedule.ScheduleDAO;
import pl.pkolodziej.platform.vo.schedule.Schedule;
import pl.pkolodziej.platform.vo.user.User;

@Service
public class ScheduleServiceImpl implements ScheduleService {

	@Autowired
	public ScheduleDAO scheduleDAO;
	
	
	@Transactional
	public void addSchedule(Schedule s) {
		scheduleDAO.addSchedule(s);
	}
	
	
	@Transactional
	public List<Schedule> listSchedule() {
		return scheduleDAO.listSchedule();
	}
	
	@Transactional
	public void updateSchedule(Schedule s) {
		scheduleDAO.updatedSchedule(s);
	}
}
